import request from '@/utils/request'

// 查询账号宠爱值列表
export function listUserPetValue(query) {
  return request({
    url: '/system/userPetValue/list',
    method: 'get',
    params: query
  })
}

// 查询账号宠爱值详细
export function getUserPetValue(id) {
  return request({
    url: '/system/userPetValue/' + id,
    method: 'get'
  })
}

// 新增账号宠爱值
export function addUserPetValue(data) {
  return request({
    url: '/system/userPetValue',
    method: 'post',
    data: data
  })
}

// 修改账号宠爱值
export function updateUserPetValue(data) {
  return request({
    url: '/system/userPetValue',
    method: 'put',
    data: data
  })
}

// 删除账号宠爱值
export function delUserPetValue(id) {
  return request({
    url: '/system/userPetValue/' + id,
    method: 'delete'
  })
}

// 导出账号宠爱值
export function exportUserPetValue(query) {
  return request({
    url: '/system/userPetValue/export',
    method: 'get',
    params: query
  })
}